<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body,
         :root {
            width: 100%;
            height: 100%;
            background-color: rgb(239, 253, 252);
        }
        
        .container {
            display: flex;
            width: 100%;
            height: 100%;
            padding: 20px;
            border: 1px solid;
        }
        
        .left-cont {
            flex: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
            border-right: 2px solid rgb(20, 59, 57);
            padding-right: 30px;
            background-color: #fff;
        }
        
        .right-cont {
            flex: 4;
            display: flex;
            flex-direction: column;
            width: 100%;
            margin-left: 20px;
        }
        
        form>div {
            margin: 20px;
        }
        
        form>div>input:not(input[type='radio']),
        select {
            display: inline-block;
            border: none;
            width: 250px;
            height: 30px;
            box-shadow: 0px 2px 14px rgba(28, 104, 96, .6);
            border-radius: 6px;
            outline: none;
            padding: 3px 5px;
        }
        
        form>div>button {
            width: 140px;
            height: 30px;
            margin-left: 10px;
            background-color: rgb(35, 129, 120);
            border: none;
            outline: none;
            border-radius: 10px;
            color: #fff;
            transition: all .3s;
            box-shadow: 2px 2px 7px rgb(0 0 0 / 70%);
        }
        
        form>div>button:active {
            background-color: rgb(27, 94, 87);
            box-shadow: 1px 1px 3px rgba(0, 0, 0, .9), inset 2px 2px 7px rgba(0, 0, 0, .7);
        }
    </style>
</head>

<body>


    <div class="container">
        <div class="left-cont">
            <h1>编辑信息：</h1>
        </div>
        <div class="right-cont">
            <form method="post">
                <input type="hidden" value="{$student_info.student_id}" name="student_id">
                <div>
                    <label for="id">学号：</label>
                    <input type="text" name="student_number" id="id" value="{$student_info.student_number}">
                </div>
                <div>
                    <label for="name">姓名：</label>
                    <input type="text" name="student_name" id="name" value="{$student_info.student_name}">
                </div>
                <div>
                    <label for="birthday">生日：</label>
                    <input type="date" name="student_birthday" id="birthday" value="{$student_info.student_birthday}">
                </div>
                <div>
                    <label for="sex">性别：</label>
                    <input type="radio" name="student_gender" id="sex" value="男" <eq name="student_info.student_gender" value="男">checked</eq>>男
                    <input type="radio" name="student_gender" id="sex" value="女" <eq name="student_info.student_gender" value="女">checked</eq>
                    </eq>女
                </div>
                <div>
                    <label for="major">班级：</label>
                    <select name="class_id" id="major">
                        <foreach name='major_info' item='v'>
                            <foreach name="v.Class" item='vv' key='k'>
                                 <option value="{$vv.class_id}" <eq name='class_id' value='$vv.class_id'>selected</eq>>{$v.major_name}&nbsp;{$vv.class_name}</option>
                            </foreach>
                        </foreach>
                    </select>
                </div>
                <div>
                    <button type="submit">添加</button>
                    <button type="reset">重置</button>
                </div>
            </form>
        </div>
    </div>
</body>

</html>